@echo off
echo Building frontend...
cd frontend
call npm run build
if %ERRORLEVEL% neq 0 (
    echo Frontend build failed!
    pause
    exit /b 1
)

echo Frontend build successful, building Wails app...
cd ..
wails build
if %ERRORLEVEL% neq 0 (
    echo Wails build failed!
    pause
    exit /b 1
)

echo Build completed successfully!
pause 